<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="shortcut icon" href="/favicon.ico"/>
  <title>微信授权</title>
</head>
<body>
</body>
<script>
    // 判断微信环境
    let ua = navigator.userAgent.toLowerCase();
    if (ua.match(/MicroMessenger/i) == "micromessenger") {
      location.href = '/app/sns/index/auth'
    } else {
      location.href = '<?= $home; ?>'
    }
</script>
</html>

